package xyz.wanwanwan.www.hrm.mapper;

import org.apache.ibatis.annotations.Param;
import xyz.wanwanwan.www.hrm.domain.Tenant;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.Date;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Mr.Fu
 * @since 2020-09-10
 */
public interface TenantMapper extends BaseMapper<Tenant> {
    /**
     * 套餐关系保存
     * @param mealId
     * @param tenantId
     * @param expireDate
     * @param state
     */
    void insertRelationMeal(@Param("mealId") Long mealId,
                            @Param("tenantId") Long tenantId,
                            @Param("expireDate") Date expireDate,
                            @Param("state") int state);
}
